import http from "../../utils/http"
// 采购
const procurement = {
    purchaseOrderList: (data) => http.post('/purchase/order_list', data), // 采购订单列表
    purchaseOrderDetail: (data) => http.get('/purchase/order_detail', data), // 采购订单详情
    purchaseOrderCreate: (data) => http.post('/purchase/order_create', data), // 采购订单创建
    purchaseOrderUpdate: (data) => http.put('/purchase/order_update', data), // 采购订单更新
    purchaseOrderDel: (data) => http.delete('/purchase/order_del', data), // 采购订单删除
    purchaseOrderSubmit: (data) => http.put('/purchase/order_submit', data), // 采购订单提交
    purchaseOrderFinish: (data) => http.put('/purchase/order_finish', data), // 采购订单完成
    purchaseOrderAuditList: (data) => http.post('/purchase/order_audit_list', data), // 采购订单审核列表
    purchaseOrderAudit: (data) => http.put('/purchase/order_audit', data), // 采购订单审核
    purchaseOrderAuditLog: (data) => http.get('/purchase/order_audit_log', data), // 采购订单审批流程列表
    purchaseOrderOperatorLog: (data) => http.get('/purchase/order_operator_log', data), // 采购订单操作日志
    purchaseOrderProductIn: (data) => http.get('/purchase/order_product_in', data), // 采购订单入库

    purchaseReturnList: (data) => http.get('/purchase/return_list', data), // 采购退货列表
    purchaseReturnDetail: (data) => http.get('/purchase/return_detail', data), // 采购退货详情
    purchaseReturnProductList: (data) => http.get('/purchase/return_product_list', data), // 采购退货产品列表
    purchaseReturnCreate: (data) => http.post('/purchase/return_create', data), // 采购退货创建
    purchaseReturnUpdate: (data) => http.put('/purchase/return_update', data), // 采购退货更新
    purchaseReturnDel: (data) => http.delete('/purchase/return_delete', data), // 采购退货删除
    purchaseReturnSubmit: (data) => http.put('/purchase/return_submit', data), // 采购退货提交
    purchaseReturnAuditList: (data) => http.get('/purchase/return_audit_list', data), // 采购退货审核列表
    purchaseReturnAudit: (data) => http.put('/purchase/return_audit', data), // 采购退货审核
    purchaseReturnAuditLog: (data) => http.get('/purchase/return_audit_log', data), // 采购退货审批流程列表
    purchaseReturnOperatorLog: (data) => http.get('/purchase/return_operator_log', data), // 采购退货操作日志
    purchaseReturnProductOut: (data) => http.get('/purchase/return_product_out', data), // 采购退货出库
}

export default procurement;